from django.db import models


# Create your models here.

class Train(models.Model):
    """
    训练数据模型
    """
    date = models.CharField(max_length=128, verbose_name="训练日期")
    precipitation = models.CharField(max_length=1024, verbose_name="训练降水量")
    humidity = models.CharField(max_length=128, verbose_name="湿度")
    pressure = models.CharField(max_length=128, verbose_name="气压")
    speed = models.CharField(max_length=128, verbose_name="地面风速")
    temperature = models.CharField(max_length=128, verbose_name="训练气温")
    radiation = models.CharField(max_length=128, verbose_name="地表水平辐射")

    class Meta:
        db_table = "train"
        verbose_name = "训练信息"
        verbose_name_plural = verbose_name


class Predict(models.Model):
    """
    预测数据模型
    """
    date = models.CharField(max_length=128, verbose_name="预测日期")
    precipitation = models.CharField(max_length=1024, verbose_name="预测降水量")
    temperature = models.CharField(max_length=32, verbose_name="预测气温")

    class Meta:
        db_table = "predict"
        verbose_name = "预测信息"
        verbose_name_plural = verbose_name
